package com.fuhan.controller;

import com.fuhan.common.restful.ResponseEnum;
import com.fuhan.common.restful.ResponseJSON;
import com.fuhan.mapper.FuHanNode1Mapper;
import com.fuhan.pojo.FuHanNode1;
import com.fuhan.service.FuHanNode1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Chao
 * @description:
 * @Date: 2021/3/19 15:37
 */
@RestController
@RequestMapping("/api/nodeData")
public class FuHanNode1Data {
    @Autowired
    private FuHanNode1Service fuHanNode1Service;

    @RequestMapping(value = "",method = RequestMethod.GET)
    public ResponseJSON<FuHanNode1> getNodeData(){
        return new ResponseJSON<>(fuHanNode1Service.getNodeData(),ResponseEnum.SUCCESS_OPTION);
    }
}
